'UserMessageInfo' object has no attribute 'title'

Brightcells 9 years ago
parent
commit
928a51477c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      message/models.py

+ 1 - 1
message/models.py

@@ -50,7 +50,7 @@ class UserMessageInfo(CreateUpdateMixin):
50 50
         verbose_name_plural = _('usermessageinfo')
51 51
 
52 52
     def __unicode__(self):
53
-        return u'{0.title}'.format(self)
53
+        return unicode(self.pk)
54 54
 
55 55
     @property
56 56
     def msg_info(self):